const router = require("@koa/router")();
const material = require("./admin/material");
const commmon = require("./admin/common");
const user = require("./admin/user");
const resoure = require("../middleware/resource")
// const admin = require("../middleware/resource")
router.use("/material", material.routes())
router.use("/user", user.routes())
router.use("/common/:resource", resoure(), commmon.routes())

module.exports = router